package com.chexiehui.jc.mvp.forum;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.BrandListInfo;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 论坛车系
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface ForumTribuneVehicleCovenant {

    interface View extends BaseView {
        void onGetBrandListSuccess(BaseModel<List<BrandListInfo>> successResult);
        void onGetBrandListFailure(BaseModel<Object> failureResult);
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_BRAND_LIST)
        Observable<BaseModel<List<BrandListInfo>>> getBrandList(@Field("timespan") String timespan);
    }

    interface Presenter {
        void getBrandList();
    }

}